package com.example.demo.web.rest.evt;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * Description:
 *
 * @Author zmf
 * @Date 2018/12/14  11:09
 */
@ApiModel("角色基本信息参数")
public class RoleEvt implements Serializable{
    private static final long serialVersionUID = -6336745475991212383L;
    @ApiModelProperty("角色ID")
    private Long roleId;
    @ApiModelProperty("角色名称")
    @NotBlank
    private String roleName;
    @ApiModelProperty("角色编码")
    private String roleCode;
    @ApiModelProperty("父角色ID")
    private Long parentRoleId;
    @ApiModelProperty("描述")
    private String description;
    @ApiModelProperty("角色类型")
    private Integer roleFlag = 1;

    public Long getRoleId() {
        return roleId;
    }

    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public Long getParentRoleId() {
        return parentRoleId;
    }

    public void setParentRoleId(Long parentRoleId) {
        this.parentRoleId = parentRoleId;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Integer getRoleFlag() {
        return roleFlag;
    }

    public void setRoleFlag(Integer roleFlag) {
        this.roleFlag = roleFlag;
    }

    public String getRoleCode() {
        return roleCode;
    }

    public void setRoleCode(String roleCode) {
        this.roleCode = roleCode;
    }

    @Override
    public String toString() {
        return "RoleEvt{" +
            "roleId=" + roleId +
            ", roleName='" + roleName + '\'' +
            ", parentRoleId=" + parentRoleId +
            ", description='" + description + '\'' +
            ", roleFlag=" + roleFlag +
            '}';
    }
}
